package com.zhou.sqs;

import com.zhou.util.SQSUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author Mr.zhou
 */
@Service("sqsService")
public class SqsService {

    private Logger logger = LoggerFactory.getLogger(this.getClass());
    
    @Autowired
	SQSUtil sqsUtil;

    
    @Value("${aws.sqs}")
    String sqs;

    public void sendToSqs(String body) {
		sqsUtil.send(sqs, body);
    }

}
